package addressBook;

/**
 * @author Jarvan
 * @version 1.0
 * @create 2020/11/12 21:20
 */
public interface ADTAddressBook {
    /** insert a new contact into this address book, */
    boolean insertContact(Contact contact);
    /** delete a contact from this address book, */
    boolean deleteContact(String contactName);
    /** search a contact in this address book, */
    Contact searchContact(String contactName);
    /** get a reference to a contact from this address book, */
    Contact getReference();
    /** check how many contacts are there in this address book, */
    int length();
    /** check to see if the address book is empty */
    boolean isEmpty();
    /** • and completely empty this address book. */
    boolean removeAllContacts();
}
